﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage2.master" AutoEventWireup="True" CodeBehind="WarningTrade.aspx.cs" Inherits="EarlyWarning_WarningTrade" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div id="tabnav">
        <ul>
             <li ><a href="WarningSetup.aspx">药品预警设置</a></li>
             <li ><a href="WarningSetuptime.aspx">响应时间预警设置</a></li>
            <li class="active"><a href="javascript:void(0);">已启动的预警</a></li>
            <li><a href="WarningProcessStop.aspx">禁用的预警</a></li>
        </ul>
    </div>
    <div id="tabnav">
        <ul>
             <li ><a href="WarningStared.aspx">药品预警查询</a></li>  <li class="active"><a href="javascript:void(0);">交易预警查询</a></li>
            
        </ul>
    </div>
    
    <asp:GridView ID="gvwInfo" runat="server" CssClass="mainlist" AutoGenerateColumns="False" 
        onrowdatabound="gvwInfo_RowDataBound">
        <EmptyDataTemplate>
                <div><label style="color:Red">暂时没有你要的数据！</label></div>
            </EmptyDataTemplate>
    <Columns>
            
             <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                 <asp:BoundField HeaderText="地区" DataField="AreaName" />
                 <asp:BoundField HeaderText="医院" DataField="HospitalName" NullDisplayText="所有医院" />
                 <asp:BoundField HeaderText="企业" DataField="CompanyName" NullDisplayText="所有企业" />
                 <asp:BoundField HeaderText="药品类别" DataField="SortName" NullDisplayText="所有类别" />
                 <asp:BoundField HeaderText="药品名称"  DataField="ProductName" NullDisplayText="所有药品"/>
                 <asp:TemplateField HeaderText="预警类型">
                    <ItemTemplate>
                        <asp:Label ID="labType" runat="server" Text='<%#Eval("WarningType") %>'></asp:Label>
                    </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="预警级别">
                    <ItemTemplate>
                        <asp:Label ID="labLeve" runat="server" Text='<%#Eval("WarningLevel") %>'></asp:Label>
                    </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="预警天数">
                    <ItemTemplate>
                        <label id="lab"><%#Eval("WarningDate")%>天</label>
                    </ItemTemplate>
                 </asp:TemplateField>
                 <asp:BoundField HeaderText="制定时间" DataField="AddTime" />
                 <asp:TemplateField HeaderText=" ">
                    <HeaderTemplate>
                        <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwInfo','chkAll'); " />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input type="checkbox" name="chkID" id="chkID" 
                            value='<%#Eval("TradePreWarningID")%>' onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwInfo','chkAll');" />
                    </ItemTemplate>
            </asp:TemplateField>
            
             </Columns>
            </asp:GridView>
            <div class="page">
    <webdiyer:AspNetPager ID = "AspNetPager1" runat = "server" 
        onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
        </div>
        <div class="listctrl">
        &nbsp;
         
        <asp:Button ID="btnForbidden" runat="server" Text="禁用预警"  CssClass = "btn"
            onclick="btnForbidden_Click" />
         
    </div>
</asp:Content>

